<form class="layui-form" id="tp-form-{$form_id|default=0}" lay-filter="tplay-form-{$form_id|default=0}">
    {if isset($fields)}
    {foreach $fields as $k=>$r}
    {if $r.is_form}
    {:create_form_elem($r)}
    {/if}
    {/foreach}
    {/if}
  </form>